/*
 * @Author: zhangyanxin
 * @Date: 2020-02-19
 *
 * 公共信息接口
 */

import request from '@/utils/request'

// 获取工作台数据
export const dashboardData = data => request.get(`/manager/workspace`, { params: data })
// 图片上传
export const uploadImageAPI = data => request.post('/manager/files/imageUpload', data)
// 获取线路类型数据
export const lineTypeCommonList = data => request.get(`/manager/web-manager/common/transportLineType/simple`, { params: data })
// 获取车辆类型数据
export const truckTypeCommonList = data => request.get(`/manager/truckType/simple`, { params: data })
// 获取负责人数据
export const principalCommonList = data => request.get(`/manager/common/user/simple`, { params: data })
// 获取车队数据
export const fleetCommonList = data => request.get(`/manager/web-manager/common/fleet/simple`, { params: data })
// 获取货物类型数据
export const goodsTypeCommonList = data => request.get(`/manager/goodsType/simple`, { params: data })
// 获取行政区域简要信息列表
export const areaList = data => request.get(`/manager/areas/children`, { params: data })
// 登录成功后的回调，记录登录日志，最后登录时间等
export const dictionaryEnums = data => request.get(`/manager/gate/dictionary/enums`, { params: data })
